package com.vhuomai.product.mapper;

import com.vhuomai.mybatis.mapper.auto.AutoMapper;
import com.vhuomai.mybatis.mapper.auto.OrderBy;
import com.vhuomai.product.entity.BaseSpuItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author harris
 */
@Mapper
public interface SpuItemMapper extends AutoMapper<BaseSpuItem, Integer> {

    @OrderBy(value = "itemOrder", desc = false)
    List<BaseSpuItem> findBySpuIdValid(@Param("spuId") int spuId);
}
